package flyweight.jdk;

/**
 * @Author: Doream
 * @Date: 2022/1/28 22:34
 */
public class Demo {
    public static void main(String[] args) {
        Integer i1 =127;
        Integer i2 =127;
        System.out.println(i1==i2); // true
        Integer i3 =128;
        Integer i4 =128;
        System.out.println(i3==i4); // false
        System.out.println(i1==127);
        System.out.println(i3==128);
        System.out.println(i4==128);
        System.out.println(i4==128&&128==i3&&i3==i4);
    }
}
